package com.melon.repository;

import com.melon.entity.admin.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by zhiqi.shao on 2017/3/15.
 */
public interface UserRepository extends JpaRepository<User, Long> {

    public User findByUsernameAndPassword(String nickName, String password);

    public User findByUsername(String username);
}
